.login-container {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));

  .login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    // images 下的logoBG
    background: url('@/assets/images/logoBG.jpg') no-repeat center center;
    background-size: cover;

    .background-shapes {
      position: relative;
      width: 100%;
      height: 100%;

      .shape {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        animation: float 6s ease-in-out infinite;

        &.shape-1 {
          width: 300px;
          height: 300px;
          top: 10%;
          left: 10%;
          animation-delay: 0s;
        }

        &.shape-2 {
          width: 200px;
          height: 200px;
          top: 60%;
          right: 15%;
          animation-delay: 2s;
        }

        &.shape-3 {
          width: 150px;
          height: 150px;
          bottom: 20%;
          left: 60%;
          animation-delay: 4s;
        }
      }
    }
  }

  .login-content {
    position: relative;
    z-index: 2;
    height: 100vh;
  }

  .left-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 2rem;
    color: white;

    .brand-section {
      text-align: center;
      margin-bottom: 3rem;

      .brand-logo {
        margin-bottom: 1.5rem;

        .logo-icon {
          width: 80px;
          height: 80px;
          color: white;
          filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
        }
      }

      .brand-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        background: linear-gradient(45deg, #fff, #e0e7ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      }

      .brand-subtitle {
        font-size: 1.1rem;
        opacity: 0.9;
        font-weight: 300;
      }
    }

    .features-list {
      .feature-item {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;

        &:hover {
          transform: translateX(10px);
          background: rgba(255, 255, 255, 0.15);
        }

        .feature-icon {
          font-size: 1.5rem;
          margin-right: 1rem;
        }

        .feature-text {
          font-size: 1rem;
          font-weight: 500;
        }
      }
    }
  }

  .login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 2rem;
  }

  .login-form {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);

    .form-header {
      text-align: center;
      margin-bottom: 2rem;

      .title {
        font-size: 2rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

      .title-tips {
        font-size: 1rem;
        color: var(--text-color-secondary);
        font-weight: 400;
      }
    }

    .login-btn {
      width: 100%;
      height: 48px;
      margin-top: 1rem;
      border: 0;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      font-size: 1rem;
      font-weight: 600;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);

      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.4);
      }

      &:active {
        transform: translateY(0);
      }
    }

    .form-footer {
      margin-top: 2rem;

      .divider {
        position: relative;
        text-align: center;
        margin: 1.5rem 0;

        &::before {
          content: '';
          position: absolute;
          top: 50%;
          left: 0;
          right: 0;
          height: 1px;
          background: var(--border-color-light);
        }

        span {
          background: rgba(255, 255, 255, 0.95);
          padding: 0 1rem;
          color: var(--text-color-secondary);
          font-size: 0.9rem;
        }
      }

      .quick-login {
        .quick-login-item {
          text-align: center;
          margin-bottom: 0.5rem;
          padding: 0.5rem;
          background: var(--bg-color-light);
          border-radius: 8px;
          border: 1px solid var(--border-color-light);

          span {
            font-size: 0.85rem;
            color: var(--text-color-secondary);
            font-family: 'Courier New', monospace;
          }
        }
      }
    }
  }

  :deep(.el-form) {
    .el-form-item {
      margin: 1.5rem 0;

      &__content {
        min-height: 48px;
        line-height: 48px;
      }

      &__error {
        position: absolute;
        top: 100%;
        left: 0;
        font-size: 0.8rem;
        line-height: 18px;
        color: var(--danger-color);
        margin-top: 0.25rem;
      }
    }

    .el-input {
      .el-input__wrapper {
        background: rgba(255, 255, 255, 0.8);
        border: 2px solid var(--border-color-light);
        border-radius: 12px;
        box-shadow: none;
        transition: all 0.3s ease;
        padding: 0 1rem;

        &:hover {
          border-color: var(--primary-color);
          background: rgba(255, 255, 255, 0.9);
        }

        &.is-focus {
          border-color: var(--primary-color);
          background: rgba(255, 255, 255, 1);
          box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
        }
      }

      .el-input__inner {
        height: 48px;
        font-size: 1rem;
        color: var(--text-color-primary);
        background: transparent;
        border: none;
        box-shadow: none;

        &::placeholder {
          color: var(--text-color-placeholder);
          font-weight: 400;
        }
      }

      .el-input__prefix,
      .el-input__suffix {
        color: var(--text-color-secondary);
      }
    }

    .el-image {
      border-radius: 8px;
      overflow: hidden;
      border: 2px solid var(--border-color-light);
      transition: all 0.3s ease;

      &:hover {
        border-color: var(--primary-color);
        transform: scale(1.05);
      }
    }
  }
}

// 添加浮动动画
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

// 响应式设计
@media (max-width: 768px) {
  .login-container {
    .left-panel {
      display: none;
    }

    .login-panel {
      padding: 1rem;
    }

    .login-form {
      padding: 2rem 1.5rem;
      margin: 1rem;
    }

    .background-shapes .shape {
      &.shape-1 {
        width: 200px;
        height: 200px;
      }

      &.shape-2 {
        width: 150px;
        height: 150px;
      }

      &.shape-3 {
        width: 100px;
        height: 100px;
      }
    }
  }
}
